package com.cjj.navtong;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;

import com.cjj.navtong.db.Child;
import com.cjj.navtong.utils.LocalUtils;

public class TaskInfoActivity extends Activity {
EditText showTask;
EditText showTime;
Button bt_protect;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_reciver_client);
		showTask=(EditText)findViewById(R.id.rc_task);
		showTime=(EditText)findViewById(R.id.rc_time);
		bt_protect=(Button)findViewById(R.id.rc_protect);
		Child child = (Child) getIntent().getSerializableExtra("child");

		showTime.append(LocalUtils.timeFormat(Long.parseLong(child.time)));
		showTask.append(child.responsion);
		try {
			//System.out.println("nothing");
//			new UdpSocketRequest().start();
		} catch (Exception e) {
			e.printStackTrace();
		}
		//showTask.append("\r\n"+GetHostIp().toString());
		finally{
			
		}
		
	}
	

}
